<template>
    <el-card class="box-card">
        <el-form ref="form" :model="form" label-width="120px">
            <el-form-item label="系统接口开放">
                <el-switch v-model="form.delivery"></el-switch>
            </el-form-item>
            <el-form-item label="接口文档">
                <el-button type="success">点击查看</el-button>
            </el-form-item>
            <el-form-item label="接口XML样例">
                <el-input type="textarea" :rows="20" v-model="form.desc"></el-input>
            </el-form-item>
        </el-form>
    </el-card>
</template>
<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>

<style>
.box-card {
    width: 95%;
    margin: 0 auto;
  }
</style>